

const arr = [1, 2, 3];
const sum = arr.reduce((acc, curr) => {
	return acc + curr
}, 0);

console.log('你好', sum);